class Result {
  static success(data = null, message = '成功') {
    return { code: 0, message, data };
  }

  static fail(message = '失败', code = -1) {
    return { code, message, data: null };
  }
}

module.exports = Result;
